#include<bits/stdc++.h>
#include <windows.h>
using namespace std;
string name6[40]={"彩蛋1","银灰","艾雅法拉","陈","安洁莉娜","能天使","推进之王","伊芙利特","闪灵","夜莺","星熊","塞雷亚","斯卡蒂","赫拉格","黑","麦哲伦","莫斯提马","煌","阿"}; 
string name5[40]={"彩蛋2","拉普兰德","德克萨斯","芙兰卡","雷蛇","白面鸮","凛冬","幽灵鲨","蓝毒","白金","陨星","天火","梅尔","赫默","华法琳","临光","红","可颂","普罗旺斯","哞","守林人","崖心","初雪","真理","狮蝎","空","食铁兽","夜魔","诗怀雅","格劳克斯","星级","送葬人","槐琥","苇草","布洛卡","灰喉"}; 
string name4[40]={"彩蛋3","杰西卡","清流","安比尔","末药","夜烟","远山","流星","白雪","清道夫","红豆","杜宾","缠丸","霜叶","慕斯","砾","暗索","调香师","角峰","蛇屠箱","古米","深海色","地灵","阿消","猎蜂","苏苏洛","格雷伊","桃金娘","红云","梅"}; 
string name3[40]={"彩蛋4","月见夜","史都华德","米格鲁","空爆","芬","香草","泡普卡","斑点","玫兰莎","卡缇","翎羽","炎蓉","芙蓉","安塞尔","梓兰"}; 
void waitfor(float a)
{
	
	Sleep(1000*a);
}
int main()
{
//	ofstream fout( "d:\\mytest.txt" ); 
//	fout.close();  
//	ifstream fin( "d:\\mytest.txt" );
//	fin.close(); 
	srand(time(0));
	cout<<"干员寻访（十连标准寻访篇）\n";
	system("pause");
	
	
	long long time1,timenow,timecha;
	
	
	while(1)
	{
		ifstream fin( "time.txt" );
		fin>>time1;
		fin.close();
		timenow=time(0);
		timecha=timenow-time1;
		int timeyu=10-timecha; 
		if(timecha>10)
		{
			cout<<"现在来寻访吧！\n";
			system("pause");
			for(int i=1;i<=10;i++)
			{
				int shu,xin;
				shu=rand()%99+1;
				if(time1==0&&i==10)
				{
					shu=18;
				 } 
				if(shu==66||shu==88)
				{
					xin=6;
				}
				else
				{
					if(shu==18||shu==28||shu==8||shu==38||shu==48||shu==58||shu==68||shu==78)
					{
						xin=5;
					}
					else
					{
						if(shu>0&&shu<=50)
						{
							xin=4;
						}
						else
						{
							xin=3;
						}
					}
				}
				for(int j=1;j<=xin;j++)
				{
					cout<<"*";
					waitfor(0.3);
					
				}
				int x;
				if(xin==6)
				{
					cout<<"  ";
					
					x=rand()%17+1;
					cout<<"    "<<name6[x];
				} 
				if(xin==5)
				{
					cout<<"   ";
					
					x=rand()%34+1;
					cout<<"    "<<name5[x];
				} 
				if(xin==4)
				{
					cout<<"    ";
					
					x=rand()%27+1;
					cout<<"    "<<name4[x];
				} 
				if(xin==3)
				{
					cout<<"     ";
					
					x=rand()%15+1;
					cout<<"    "<<name3[x];
				}  
				cout<<"\n"; 
				
			}
			system("pause");
			ofstream fout( "time.txt" );
			fout<<time(0);
			fout.close();
				
		} 
		else
		{
			cout<<"距离下次寻访："<<timeyu/3600<<":"<<timeyu/60%60<<":"<<timeyu%60<<endl; 
		}
		system("Cls"); 
	}
	
	
	return 0;
}